﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Calendar.Models;

namespace Calendar.Controllers
{
    public class AdminController : Controller
    {

        CalendarContext context = new CalendarContext();
        public ActionResult Index()
        {


            var result = context.Events;

            return View(result.ToList());
        }

    }
}
